<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>支付_参与</title>
    <meta name="keywords" content="<?php if(isset($output['keywords'])){echo $output['keywords'];}else{ echo '金银商城';}?>" />
    <meta name="description" content="<?php if(isset($output['description'])){echo $output['description'];}else{ echo '金银商城';}?>" />
    <link rel="stylesheet" type="text/css" href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/Comm1.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo SHOP_RESOURCE_SITE_URL;?>/css/MyCart.css"/>
    <link href="<?php echo SHOP_TEMPLATES_URL;?>/css/home_cart.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/jquery-json.js"></script>
    <script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/jquery.cookie.js"></script>

    <style>
        .yeepay_bank img{ border:1px solid #eee; padding:2px; width:130px; height:35px; }
    </style>
</head>
<body>
<div style=" background:#FDEDE0;">
    <div class="wrapper">
        <DIV class="Current_nav" style="color:#4aaddf;line-height: 30px;">
            <A href="javascript:void();">首页</A><a> &gt;  1元购 &gt; </a> 正在进行中</DIV>
    </div>
</div>
<div  style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_066.jpg') center; width:100%; height:88px;">
</div>
<div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_077.jpg') center; width:100%; height:480px;margin-top: -20px;">
<form id="form_paysubmit" action="<?php echo urlShop('crowdfunding','paysubmit');?>" method="post">
    <input type="hidden" name="submitcode" value="<?php echo $output['submitcode'];?>">
    <div class="shop_payment">
        <ul class="payment">
            <li class="first_step">第一步：提交订单</li>
            <li class="arrow_1"></li>
            <li class="secend_step orange_Tech">第二步：订单支付</li>
            <li class="arrow_3"></li>
            <li class="third_step">第三步：支付成功 等待揭晓</li>
            <li class="arrow_2"></li>
            <li class="fourth_step">第四步：揭晓获得者</li>
            <!-- <li class="arrow_2"></li>
            <li class="fifth_step">第五步：晒单奖励</li> -->
        </ul>
        <div class="payment_Con">
            <ul class="order_list">
                <li class="top">
                    <span class="name">商品名称</span>
                    <span class="moneys">价值</span>
                    <span class="money">参与价</span>
                    <span class="num">参与人次</span>
                    <span class="all">小计</span>
                </li>
               <?php foreach($output['shoplist'] as  $shops){?>
                <li class="end">
				<span class="name">
                    <a  class="blue" href="<?php echo urlShop('crowdfunding', 'goods',array('id'=>$shops['id']));?>">
                        <?php echo $shops['title'];?>
                    </a>
                </span>
                    <span class="moneys"><?php echo $shops['money'];?></span>
                    <span class="money"><span class="color">￥<b><?php echo $shops['yunjiage'];?></b></span></span>
                    <span class="num orange Fb"><?php echo $shops['cart_gorenci'];?></span>
                    <span class="all"><?php $shops['cart_xiaoji'];?></span>
                </li>
                <?php }?>
                <li class="payment_Total">
                    <div class="payment_List_Lc"><a href="<?php echo urlShop('crowdfunding', 'cartlist');?>" class="form_ReturnBut">返回购物车修改订单</a></div>
                    <p class="payment_List_Rc">商品合计：<span class="orange F20"><?php echo $output['MoenyCount'];?></span> 元</p>
                </li>


                <!-- S 预存款 & 充值卡 -->
                <dl class="ncc-pd-pay">
                    <?php if (!empty($output['pay']['payd_pd_amount']) || !empty($output['pay']['payd_rcb_amount'])) { ?>
                        <dd>您已选择
                            <?php echo !empty($output['pay']['payd_rcb_amount']) ? "使用充值卡支付<em>".ncPriceFormat($output['pay']['payd_rcb_amount'])."</em>元；" : null; ?>
                            <?php echo !empty($output['pay']['payd_pd_amount']) ? "使用预存款支付<em>".ncPriceFormat($output['pay']['payd_pd_amount'])."</em>元；" : null; ?>
                            还需在线支付 <strong id="api_pay_amount"><?php echo ncPriceFormat($output['pay']['payd_diff_amount']);?></strong>元。</dd>
                    <?php } ?>

                        <dt>使用余额支付</dt>
                        <dd>
                            <label><input type="checkbox" class="checkbox" value="1" name="rcb_pay">
                                使用充值卡支付</label> （可用余额：<em><?php echo ncPriceFormat($output['available_rc_balance']);?></em>元）</dd>
                        <dd>
                            <label><input type="checkbox" class="checkbox" value="1" name="pd_pay">
                                使用预存款支付</label> （可用余额：<em><?php echo ncPriceFormat($output['available_predeposit']);?></em>元）</dd>
                        <dd>（同时勾选时，系统将优先使用充值卡，不足时扣除预存款，目前还需在线支付 <strong id="api_pay_amount"><?php echo ncPriceFormat($output['pay']['pay_amount_online']);?></strong>元。）余额不足？<a href="<?php echo urlMember('predeposit', 'pd_log_list');?>" class="predeposit">马上充值</a>   每推荐一位会员系统将赠送一元充值金,快去<a href="<?php echo urlShop('member', 'home');?>" class="predeposit">推荐</a>吧!</dd>
                        <dd id="pd_password" style="display: none">请输入支付密码
                            <input type="password" value="" name="password" id="pay-password" maxlength="35" autocomplete="off">
                            <?php  if (!$output['member_paypwd']) {?>
                                还未设置支付密码，<a href="<?php echo urlMember('member_security', 'auth', array('type' => 'modify_paypwd'));?>" target="_blank">马上设置</a>
                            <?php }else{ ?>
                                支付密码预设为登入密码，<a href="<?php echo urlMember('member_security', 'auth', array('type' => 'modify_paypwd'));?>" target="_blank">马上修改</a>
                            <?php }?>
                        </dd>

                </dl>
        </div>


        <div class="payment_but" style="margin:15px 0 0 0;">
            <input type="hidden" id="payment_code" name="payment_code" value="" />
            <input id="pd_pay_submit" class="shop_pay_but" type="submit" name="submit" value="">
        </div>

</form>
</div>

<div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_05.jpg') center; width:100%; height:148px; margin-left:-1px;margin-top: -10px;padding-top: 20px;"></div>
<div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_077.jpg') center; width:100%; min-height:320px;margin-top: -20px;">
<div class="fast" id="fast">
    <h3>
        <span>以下商品即将揭晓，快参与吧！</span></h3>
    <?php foreach($output['getlist'] as $fast){?>
        <div class="fast_list">
            <h4>
                <a href="<?php echo urlShop('crowdfunding', 'goods',array('id'=>$fast['id']));?>" title="<?php echo $fast['title'];?>">
                    <img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS.$fast['thumb'];?>" alt="{wc:$fast['title']}"></a></h4>
            <ul>
                <li class="title"><a href="<?php echo urlShop('crowdfunding', 'goods',array('id'=>$fast['id']));?>" title="<?php echo $fast['title'];?>">
                        <?php echo $fast['title'];?></a></li>
                <li>价值：￥<span> <?php echo $fast['money'];?></span></li>
                <li>需要 <span style="color: #0082f0">
                            <?php echo $fast['zongrenshu'];?></span> 人次参与</li>
                <li>已参与 <span style="color: #ff0000; font-size: 16px; family: arial">
                            <?php echo $fast['canyurenshu'];?></span> 人次</li>
                <li class="buy"><a id="btnAdd2Cart" href="<?php echo urlShop('crowdfunding', 'goods',array('id'=>$fast['id']));?>" class="go_cart gotoCart" target="blank">去看看</a></li>
            </ul>
        </div>
    <?php }?>
</div>
<div class="fast answer" style="padding-top: 15px;padding-bottom: -10px;">
    <h6><span></span>付款遇到问题</h6>
    <ul class="answer_list">
        <li>1、如您未开通网上银行，即可以使用储蓄卡快捷支付轻松完成付款；</li>
        <li>2、如果您没有网银，可以使用银联在线支付，银联有支持无需开通网银的快捷支付和储值卡支付；</li>
        <li>3、如果您有财付通或快钱、手机支付账户，可将款项先充入相应账户内，然后使用账户余额进行一次性支付；</li>
        <li>4、如果银行卡已经扣款，但您的账户中没有显示，有可能因为网络原因导致，将在第二个工作日恢复。</li>

    </ul>
</div>
</div>
<div style="background:url('<?php echo SHOP_RESOURCE_SITE_URL;?>/images/lyg_088.jpg') center; width:100%; height:60px;margin-top: -10px;"></div>
<div align="center" style="background-color: #fdede1;padding-bottom:15px;margin-bottom: -30px; ">本活动最终解释权归找金银网所有</div>
    <!--payment_Con end-->
    <script>
        $(function(){
            $('.ncc-payment-list > li').on('click',function(){
                $('.ncc-payment-list > li').removeClass('using');
                if ($('#payment_code').val() != $(this).attr('payment_code')) {
                    $('#payment_code').val($(this).attr('payment_code'));
                    $(this).addClass('using');
                } else {
                    $('#payment_code').val('');
                }
            });

            $('#pd_pay_submit').click(function(){

                if($('input[name="pd_pay"]').is(':checked')==false && $('input[name="rcb_pay"]').is(':checked')==false && $('#payment_code').val() == ''){
                    showDialog('请选择一种支付方式', 'error','','','','','','','',2);
                    return false;
                }
                if ((($('input[name="pd_pay"]').is(':checked')==true || $('input[name="rcb_pay"]').is(':checked')==true)) && $('#pay-password').val()=='') {
                    showDialog('使用充值卡/预存款支付，需输入支付密码并确认  ', 'error','','','','','','','',2);
                    return false;
                }
                if ($('#payment_code').val() == '' && parseFloat($('#api_pay_amount').html()) > 0) {
                    showDialog('请选择一种在线支付方式', 'error','','','','','','','',2);
                    return false;
                }

            });
            $('input[name="rcb_pay"]').on('change',function(){
                showPaySubmit();
                if ($(this).attr('checked') && !$('input[name="pd_pay"]').attr('checked')) {
                    if (member_rcb >= pay_amount_online) {
                        $('input[name="pd_pay"]').attr('checked',false).attr('disabled',true);
                    }
                } else {
                    $('input[name="pd_pay"]').attr('disabled',false);
                }
            });

            $('input[name="pd_pay"]').on('change',function(){
                showPaySubmit();
                if ($(this).attr('checked') && !$('input[name="rcb_pay"]').attr('checked')) {
                    if (member_pd >= pay_amount_online) {
                        $('input[name="rcb_pay"]').attr('checked',false).attr('disabled',true);
                    }
                } else {
                    $('input[name="rcb_pay"]').attr('disabled',false);
                }
            });

            function showPaySubmit() {
                if ($('input[name="pd_pay"]').attr('checked') || $('input[name="rcb_pay"]').attr('checked')) {
                    $('#pay-password').val('');
                    $('#password_callback').val('');
                    $('#pd_password').show();
                } else {
                    $('#pd_password').hide();
                }

            }
        });
    </script>
    <!--footer 开始-->

